<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BrokenIRC: server_src/rfc_cmds0.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BrokenIRC
   &#160;<span id="projectnumber">0.0.42</span>
   </div>
   <div id="projectbrief">A &#39;not so functionnal&#39; irc server and a WIP client</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_20e5c1c74b8b955148e6b35ac4a0bc4d.html">server_src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">rfc_cmds0.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="rfc__cmds0_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** EPITECH PROJECT, 2018</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">** MY_IRC</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** File description:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** my_irc server rfc methods functions</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;../include/server.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="server_8h.html#a7bc519f56f91233055c4bee31d1c33bb">   19</a></span>&#160;<span class="keywordtype">void</span>    *<a class="code" href="rfc__cmds0_8c.html#a71367510a3d917e8ed6776a2e288d39d">join</a>(<a class="code" href="server_8h.html#acfbe918d8821ff3d1d8dc2c90bb8f6a2">cmdargs</a> args, <span class="keywordtype">int</span> clifd, <a class="code" href="structt__channel.html">t_channel</a> *chans)</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <a class="code" href="structt__user.html">t_user</a> *usr = <a class="code" href="lists__helpers_8c.html#a0195cd48a4c52a9624a811825cef8afb">find_user_by_fd</a>(chans-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>, clifd);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <a class="code" href="structt__userlist.html">t_userlist</a> *list = <a class="code" href="user__list_8c.html#a1cf3d818bc2607cb0f69c043dba3c039">get_new_userlist</a>(usr);</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <a class="code" href="structt__channel.html">t_channel</a> *rchan = <a class="code" href="lists__helpers_8c.html#ae86be37e5d76544c9d6feb9d7b9b6b02">get_chan_by_name</a>(chans, args[1]);</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keywordflow">if</span> (!rchan) {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;                rchan = <a class="code" href="channel__list_8c.html#ab30bae85710efb83f84f2f60279750d4">get_new_chan_list</a>(list, args[1]);</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;                chans = <a class="code" href="channel__list_8c.html#a5050eeaaa964d8e01bb2a0bb28dd3092">insert_back_channel</a>(chans, rchan);</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="lists__helpers_8c.html#a0195cd48a4c52a9624a811825cef8afb">find_user_by_fd</a>(rchan-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>, clifd)) {</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;                rchan-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a> = <a class="code" href="user__list_8c.html#a2b16f778b01689e31ef5530b66d41390">insert_back_user</a>(rchan-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>, list);</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        }</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="structt__userlist.html">t_userlist</a> *b = rchan-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>; b; b = b-&gt;<a class="code" href="structt__userlist.html#a3b987a9a352379a703da737198b42d4a">next</a>) {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;                dprintf(b-&gt;user-&gt;clifd, <span class="stringliteral">&quot;:%s JOIN :%s\r\n&quot;</span>, usr-&gt;<a class="code" href="structt__user.html#ae26ce5e41546b895d8d85f3cde41c096">nick</a>, args[1]);</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        }</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        dprintf(clifd, <span class="stringliteral">&quot;:server 331\r\n%s: no topic is set\r\n&quot;</span>, args[1]);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <span class="keywordflow">return</span> (chans);</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;}</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="server_8h.html#a8193bc1dd3461f512b07b2a8c686ec9c">   46</a></span>&#160;<span class="keywordtype">void</span>     *<a class="code" href="rfc__cmds0_8c.html#a7b98d677eef4b5ec4ec05ee7f8740a93">nick</a>(<a class="code" href="server_8h.html#acfbe918d8821ff3d1d8dc2c90bb8f6a2">cmdargs</a> args, <span class="keywordtype">int</span> clifd, <a class="code" href="structt__channel.html">t_channel</a> *chans)</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordtype">char</span> *fmt = <span class="stringliteral">&quot;:BrokenIRC NICK %s\r\n&quot;</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordflow">if</span> (clifd)</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="structt__userlist.html">t_userlist</a> *tmp = chans-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>; tmp; tmp = tmp-&gt;<a class="code" href="structt__userlist.html#a3b987a9a352379a703da737198b42d4a">next</a>) {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                        dprintf(tmp-&gt;user-&gt;clifd, fmt, args[1]);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordflow">return</span> (chans);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="server_8h.html#ad2f830dde1e4ea8ef5e013a15cff72be">   65</a></span>&#160;<span class="keywordtype">void</span>    *<a class="code" href="rfc__cmds0_8c.html#a09146559e1d3b558645be28d0dd3e7ce">ping</a>(<a class="code" href="server_8h.html#acfbe918d8821ff3d1d8dc2c90bb8f6a2">cmdargs</a> args, <span class="keywordtype">int</span> clifd, <a class="code" href="structt__channel.html">t_channel</a> *chans)</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">if</span> (args || !args || chans)</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        dprintf(clifd, <span class="stringliteral">&quot;PONG\r\n&quot;</span>);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">return</span> (chans);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;}</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="server_8h.html#ac36f6273cc3b6d793ac67fd4ab88fbc4">   81</a></span>&#160;<span class="keywordtype">void</span>     *<a class="code" href="rfc__cmds0_8c.html#a46f1f4a4420676e1242357d23dc76141">user</a>(<a class="code" href="server_8h.html#acfbe918d8821ff3d1d8dc2c90bb8f6a2">cmdargs</a> args, <span class="keywordtype">int</span> clifd, <a class="code" href="structt__channel.html">t_channel</a> *chans)</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;{</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordtype">char</span> *banneer = <span class="stringliteral">&quot;|| Welcome to BrokenIRC Network || &quot;</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="lists__helpers_8c.html#a5c9b2cd4523b5cc43326163d534225d9">get_size</a>(args) == 5) {</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                <a class="code" href="structt__user.html">t_user</a> *usr = <a class="code" href="user__list_8c.html#ace045c243817cc0c9885bdf3b41263c0">get_new_user</a>(clifd, args);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                <a class="code" href="structt__userlist.html">t_userlist</a> *list = <a class="code" href="user__list_8c.html#a1cf3d818bc2607cb0f69c043dba3c039">get_new_userlist</a>(usr);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                chans-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a> = <a class="code" href="user__list_8c.html#a2b16f778b01689e31ef5530b66d41390">insert_back_user</a>(chans-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>, list);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                dprintf(clifd, <span class="stringliteral">&quot;001 :%s %s %s\r\n&quot;</span>, args[1], args[1], banneer);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">return</span> (chans);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;}</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="server_8h.html#a8a966c4254db49b02978407670cc9fa9">  101</a></span>&#160;<span class="keywordtype">void</span>    *<a class="code" href="rfc__cmds0_8c.html#aab01df5c017adecbb904e1cb95d589f7">quit</a>(<a class="code" href="server_8h.html#acfbe918d8821ff3d1d8dc2c90bb8f6a2">cmdargs</a> args, <span class="keywordtype">int</span> clifd, <a class="code" href="structt__channel.html">t_channel</a> *chans)</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;{</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <a class="code" href="structt__user.html">t_user</a> *usr = <a class="code" href="lists__helpers_8c.html#a0195cd48a4c52a9624a811825cef8afb">find_user_by_fd</a>(chans-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>, clifd);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="structt__userlist.html">t_userlist</a> *b = chans-&gt;<a class="code" href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">users</a>; b; b = b-&gt;<a class="code" href="structt__userlist.html#a3b987a9a352379a703da737198b42d4a">next</a>) {</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                dprintf(b-&gt;user-&gt;clifd, <span class="stringliteral">&quot;:%s QUIT :%s\r\n&quot;</span>, usr-&gt;<a class="code" href="structt__user.html#ae26ce5e41546b895d8d85f3cde41c096">nick</a>, args[1]);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="structt__channel.html">t_channel</a> *chan = chans; chan; chan = chan-&gt;<a class="code" href="structt__channel.html#ad735fa416150cd0bbd1ce42e82a1c1fa">next</a>) {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                <a class="code" href="lists__helpers_8c.html#af9f57eda934151d707615e8f315e7897">is_user_in_chan</a>(clifd, chan);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        close(clifd);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">return</span> (chans);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div><div class="ttc" id="rfc__cmds0_8c_html_a46f1f4a4420676e1242357d23dc76141"><div class="ttname"><a href="rfc__cmds0_8c.html#a46f1f4a4420676e1242357d23dc76141">user</a></div><div class="ttdeci">void * user(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00081">rfc_cmds0.c:81</a></div></div>
<div class="ttc" id="lists__helpers_8c_html_a5c9b2cd4523b5cc43326163d534225d9"><div class="ttname"><a href="lists__helpers_8c.html#a5c9b2cd4523b5cc43326163d534225d9">get_size</a></div><div class="ttdeci">unsigned int get_size(cmdargs args)</div><div class="ttdef"><b>Definition:</b> <a href="lists__helpers_8c_source.html#l00011">lists_helpers.c:11</a></div></div>
<div class="ttc" id="user__list_8c_html_a2b16f778b01689e31ef5530b66d41390"><div class="ttname"><a href="user__list_8c.html#a2b16f778b01689e31ef5530b66d41390">insert_back_user</a></div><div class="ttdeci">void * insert_back_user(t_userlist *head, t_userlist *nuser)</div><div class="ttdef"><b>Definition:</b> <a href="user__list_8c_source.html#l00052">user_list.c:52</a></div></div>
<div class="ttc" id="structt__userlist_html"><div class="ttname"><a href="structt__userlist.html">t_userlist</a></div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00114">server.h:114</a></div></div>
<div class="ttc" id="lists__helpers_8c_html_a0195cd48a4c52a9624a811825cef8afb"><div class="ttname"><a href="lists__helpers_8c.html#a0195cd48a4c52a9624a811825cef8afb">find_user_by_fd</a></div><div class="ttdeci">t_user * find_user_by_fd(t_userlist *list, int clifd)</div><div class="ttdef"><b>Definition:</b> <a href="lists__helpers_8c_source.html#l00026">lists_helpers.c:26</a></div></div>
<div class="ttc" id="channel__list_8c_html_ab30bae85710efb83f84f2f60279750d4"><div class="ttname"><a href="channel__list_8c.html#ab30bae85710efb83f84f2f60279750d4">get_new_chan_list</a></div><div class="ttdeci">t_channel * get_new_chan_list(t_userlist *userlist, char *channame)</div><div class="ttdef"><b>Definition:</b> <a href="channel__list_8c_source.html#l00015">channel_list.c:15</a></div></div>
<div class="ttc" id="structt__channel_html_a8097607fae5d78c98125bac6caaefe18"><div class="ttname"><a href="structt__channel.html#a8097607fae5d78c98125bac6caaefe18">t_channel::users</a></div><div class="ttdeci">t_userlist * users</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00123">server.h:123</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a09146559e1d3b558645be28d0dd3e7ce"><div class="ttname"><a href="rfc__cmds0_8c.html#a09146559e1d3b558645be28d0dd3e7ce">ping</a></div><div class="ttdeci">void * ping(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00065">rfc_cmds0.c:65</a></div></div>
<div class="ttc" id="structt__channel_html_ad735fa416150cd0bbd1ce42e82a1c1fa"><div class="ttname"><a href="structt__channel.html#ad735fa416150cd0bbd1ce42e82a1c1fa">t_channel::next</a></div><div class="ttdeci">struct s_channel * next</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00125">server.h:125</a></div></div>
<div class="ttc" id="structt__user_html"><div class="ttname"><a href="structt__user.html">t_user</a></div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00105">server.h:105</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a7b98d677eef4b5ec4ec05ee7f8740a93"><div class="ttname"><a href="rfc__cmds0_8c.html#a7b98d677eef4b5ec4ec05ee7f8740a93">nick</a></div><div class="ttdeci">void * nick(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00046">rfc_cmds0.c:46</a></div></div>
<div class="ttc" id="structt__channel_html"><div class="ttname"><a href="structt__channel.html">t_channel</a></div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00121">server.h:121</a></div></div>
<div class="ttc" id="server_8h_html_acfbe918d8821ff3d1d8dc2c90bb8f6a2"><div class="ttname"><a href="server_8h.html#acfbe918d8821ff3d1d8dc2c90bb8f6a2">cmdargs</a></div><div class="ttdeci">char ** cmdargs</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00044">server.h:44</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_aab01df5c017adecbb904e1cb95d589f7"><div class="ttname"><a href="rfc__cmds0_8c.html#aab01df5c017adecbb904e1cb95d589f7">quit</a></div><div class="ttdeci">void * quit(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00101">rfc_cmds0.c:101</a></div></div>
<div class="ttc" id="user__list_8c_html_a1cf3d818bc2607cb0f69c043dba3c039"><div class="ttname"><a href="user__list_8c.html#a1cf3d818bc2607cb0f69c043dba3c039">get_new_userlist</a></div><div class="ttdeci">t_userlist * get_new_userlist(t_user *usr)</div><div class="ttdef"><b>Definition:</b> <a href="user__list_8c_source.html#l00034">user_list.c:34</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a71367510a3d917e8ed6776a2e288d39d"><div class="ttname"><a href="rfc__cmds0_8c.html#a71367510a3d917e8ed6776a2e288d39d">join</a></div><div class="ttdeci">void * join(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00019">rfc_cmds0.c:19</a></div></div>
<div class="ttc" id="lists__helpers_8c_html_ae86be37e5d76544c9d6feb9d7b9b6b02"><div class="ttname"><a href="lists__helpers_8c.html#ae86be37e5d76544c9d6feb9d7b9b6b02">get_chan_by_name</a></div><div class="ttdeci">t_channel * get_chan_by_name(t_channel *list, char *channame)</div><div class="ttdef"><b>Definition:</b> <a href="lists__helpers_8c_source.html#l00044">lists_helpers.c:44</a></div></div>
<div class="ttc" id="channel__list_8c_html_a5050eeaaa964d8e01bb2a0bb28dd3092"><div class="ttname"><a href="channel__list_8c.html#a5050eeaaa964d8e01bb2a0bb28dd3092">insert_back_channel</a></div><div class="ttdeci">void * insert_back_channel(t_channel *head, t_channel *new)</div><div class="ttdef"><b>Definition:</b> <a href="channel__list_8c_source.html#l00033">channel_list.c:33</a></div></div>
<div class="ttc" id="lists__helpers_8c_html_af9f57eda934151d707615e8f315e7897"><div class="ttname"><a href="lists__helpers_8c.html#af9f57eda934151d707615e8f315e7897">is_user_in_chan</a></div><div class="ttdeci">unsigned int is_user_in_chan(int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="lists__helpers_8c_source.html#l00057">lists_helpers.c:57</a></div></div>
<div class="ttc" id="user__list_8c_html_ace045c243817cc0c9885bdf3b41263c0"><div class="ttname"><a href="user__list_8c.html#ace045c243817cc0c9885bdf3b41263c0">get_new_user</a></div><div class="ttdeci">t_user * get_new_user(int clifd, cmdargs usercmd)</div><div class="ttdef"><b>Definition:</b> <a href="user__list_8c_source.html#l00016">user_list.c:16</a></div></div>
<div class="ttc" id="structt__userlist_html_a3b987a9a352379a703da737198b42d4a"><div class="ttname"><a href="structt__userlist.html#a3b987a9a352379a703da737198b42d4a">t_userlist::next</a></div><div class="ttdeci">struct s_userlist * next</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00117">server.h:117</a></div></div>
<div class="ttc" id="structt__user_html_ae26ce5e41546b895d8d85f3cde41c096"><div class="ttname"><a href="structt__user.html#ae26ce5e41546b895d8d85f3cde41c096">t_user::nick</a></div><div class="ttdeci">char * nick</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00108">server.h:108</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
